s="hello itcast"
count=0
for e in s:
    count+=1
s1="21381923sdasdfasdAAJLBVdhbbmdsanbds##%^^!@$"
# 统计上述字符串中数字有多少个,小写字母多少个,大写字母多少个,其他字符多少个
count_num=0  #数字
count_upper_letter=0   #大写
count_lower_letter=0 #小写
count_other=0 #其他
for a in s1:
    print(a,type(a))
    # if   '0'<=a<='9':
    #     count_num+=1
    # elif     'A'<=a<='Z':
    #     count_upper_letter+=1
    # elif    'a'<=a<='z':
    #     count_lower_letter+=1
    # else:
    #     count_other+=1
print(count_num,count_lower_letter,count_upper_letter)




